package com.bizzard.org.service;

import com.bizzard.basic.service.IBaseService;
import com.bizzard.org.domain.Shop;
import com.bizzard.org.domain.ShopAuditLog;
import com.bizzard.org.dto.ShopDto;

import javax.mail.MessagingException;
import java.util.List;


public interface IShopService extends IBaseService<Shop> {

    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 店铺审核通过
     * @param log
     */
    void pass(ShopAuditLog log) throws MessagingException;


    /**
     * 店铺审核驳回
     * @param log
     */
    void reject(ShopAuditLog log) throws MessagingException;

    /**
     *  获取每一个店铺的状态
     * @return
     */
    List<ShopDto> getShopState();

    /**
     *  店铺激活 到登录页面
     * @param id
     */
    void active(Long id);
}
